<?php
namespace Sys\Controller;
use Todo\Controller\ApiController;

class IdentityController extends ApiController {
    

    public function validateCode(){
        $value = I('get.code');
        if(!$value) die('false');

        $this->_validate('code', $value, 'unique');
    }
}